<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	<body>
		 <ul ng-controller="ListController" ng-app="myapp">
		 	 <li ng-repeat="item in xiaoheishenghuo" data-id="{{item.id}}">
		 	 	
		 	 	<span ng-bind="item.name"></span>
		 	 	   &nbsp;&nbsp;&nbsp;&nbsp;
		 	 	<span ng-bind="item.age"></span> 
		 	 	 <span>{{$last?'没有了':''}}</span>
		 	 </li>
		 	 
		 	
		 </ul>
	   <script type="text/javascript" src="js/angular.js" ></script>
		<script>
		 var list= angular.module('myapp',[])
		  list.controller("ListController",['$scope',function($scope){
		  	$scope.xiaoheishenghuo=[];
		  	for(var i=1;i<10;i++){
		  		$scope.xiaoheishenghuo[$scope.xiaoheishenghuo.length]={
		  			id:i,
		  			name:'赵小黑'+i,
		  			age:20+i,
		  		}
		  		
		  	}
		  	
		  	
		  }])
			
			
		</script>
	</head>
	</body>
</html>
